package jsyf.oa.entity.task;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by y on 2018/5/3.
 */
@Entity
@Table(name = "T_SYS_TASK", schema = "oa", catalog = "")
public class SignRemindEntity extends BaseEntity{
    private String remark;
    private String reportDate;
    private Integer state;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getReportDate() {
        return reportDate;
    }

    public void setReportDate(String reportDate) {
        this.reportDate = reportDate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID",getId());
        obj.put("REMARK",getRemark());
        obj.put("REPORT_DATE",getReportDate());
        obj.put("STATE",getState());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_SYS_TASK";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID","id");
        obj.put("REMARK","remark");
        obj.put("REPORT_DATE","reportDate");
        obj.put("STATE","state");
        return obj;
    }
}
